<template>
	<view class="container">
		<rich-text :nodes="nodes"></rich-text>
	</view>
</template>

<script>
	import {
		getAgreement
	} from '@/api/modules/common';
	export default {
		data() {
			return {
				nodes: '<div style="text-align: center;"><img src="https: //qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png"/></div>'
			}
		},
		methods: {
			async getAgreement() {
				const {
					data
				} = await getAgreement({
					type: 'privacy_agreement'
				});
				this.nodes = data.content;
			},
		},
		onLoad() {
			this.getAgreement();
		}
	}
</script>

<style>
	.container {
		padding: 20rpx 30rpx;
	}
</style>